home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 27 / CU Amiga Magazine's Super CD-ROM 27 (1998)(EMAP Images)(GB)[!][issue 1998-10].iso / CUCD / Utilities / SmartFilesystem / Include / nodes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-30  |  1008 b   |  31 lines

  1. #include <exec/types.h>
  2. #include <libraries/iffparse.h>
  3. #include "blockstructure.h"
  4.  
  5. #define ROOTNODE (1)
  6.  
  7. /* a NODE is the number of a fsNode structure in a fsNodeContainer */
  8.  
  9. typedef unsigned long NODE;
  10.  
  11. /* Structures used by Node trees */
  12.  
  13. struct fsNode {
  14.   ULONG data;
  15. };
  16.  
  17. #define NODECONTAINER_ID         MAKE_ID('N','D','C',' ')
  18.  
  19. struct fsNodeContainer {
  20.   struct fsBlockHeader bheader;
  21.   BLCK  parent;            /* The blocknumber of its parent NodeIndexContainer */
  22.   NODE  nodenumber;        /* The Node number of the first Node in this block */
  23.   ULONG nodes;             /* The total number of Nodes per NodeIndexContainer
  24.                               or NodeIndexContainer from this point in the
  25.                               Node-tree.  If this is 1 it is a leaf container. */
  26.  
  27.   BLCKn node[0];           /* An array of NodeIndexContainers or NodeContainers
  28.                               depending on where this NodeIndexContainer is
  29.                               within the Node-tree. */
  30. };
  31.